import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'
import Frame from '../compontents/index'
import Login from '../pages/Login'
import React from 'react'
import PageNotFound from "../pages/PageNotFound";
export default function Config() {
    return (
        <div>
            <Router>
                <Routes>
                    {/* <Route path="*" element={<Navigate to="/404" />} /> */}
                    <Route path="/" element={<Navigate to="/login" />} />
                    <Route path="/login" element={<Login />} />
                    <Route path="/404" element={<div>Page Not Found</div>} />
                    <Route path='/*' element={<Frame />} />
                    <Route path="*" element={<Navigate replace to="/404" />} />
                </Routes>
            </Router>
        </div>
    )
}
